package com.huawei.appgallery.foundation.ui.css.adapter.param;

import com.huawei.appgallery.foundation.ui.css.adapter.param.Parameter.AsyncGenerator;
import com.huawei.appgallery.foundation.ui.css.adapter.type.CSSValue;

public abstract class AsyncParameterGenerator<T extends CSSValue> implements AsyncGenerator<T> {
    public abstract void get(Object obj, T t, GeneratorCallBack generatorCallBack);

    public final Object get(Object obj, T t) {
        return new Object[]{obj, t};
    }

    public final void call(Object obj, GeneratorCallBack generatorCallBack) {
        Object[] objArr = (Object[]) obj;
        get(objArr[0], (CSSValue) objArr[1], generatorCallBack);
    }
}
